package com.hutianao.gqgl.menu.service;

import com.hutianao.gqgl.mybatis.entity.PtMenuEntity;
import com.hutianao.gqgl.mybatis.ztree.ZtreeEntity;
import com.hutianao.gqgl.mybatis.entity.PtMenuEntity;
import com.hutianao.gqgl.mybatis.entity.PtMenuI18n;
import com.hutianao.gqgl.spring.tag.entity.DictTagEntity;
import com.hutianao.gqgl.mybatis.flexigrid.PaddingEntity;
import com.hutianao.gqgl.mybatis.flexigrid.PadingRstType;

import java.util.List;

public interface MenuService {
    List<ZtreeEntity> queryLeftTree();

    PtMenuEntity queryMenuListById(String menuId);

    List<DictTagEntity> queryMenuList();

    PadingRstType<PtMenuEntity> queryMenuInfoListById(String menuId, PaddingEntity padding);

    List<PtMenuI18n> getI18nByMenuId(String menuId);

    void deleteMenuI18nById(String menuId, String langId);

    void saveMenuI18n(PtMenuI18n ptMenuI18n);

    List<ZtreeEntity> queryBoundMenuTree(String menuId);

    void saveParentIdByMenuId(String menuId, String parentId);

    void unboundParentIdByMenuId(String menuId);

    void addMenuInfo(PtMenuEntity ptMenuEntity);

    void updateMenuInfo(PtMenuEntity ptMenuEntity);

    void deleteMenuInfoByMenuId(String menuId);
}
